package com.ygqh.baby.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygqh.baby.mapper.YgProductLogMapper;
import com.ygqh.baby.po.YgProductLog;
import com.ygqh.baby.service.YgProductLogService;

@Service
public class YgProductLogServiceImpl implements YgProductLogService {
	
	@Autowired
	private YgProductLogMapper ygProductLogMapper;

	@Override
	public void saveYgProductLog(YgProductLog log) {
		if (log.getRemark().getBytes().length > 60000) {
			log.setRemark(null);
		}
		ygProductLogMapper.insertSelective(log);
	}

}
